<!--
 * @Description: 
 * @Author: chenjiaxin
 * @Date: 2022-09-03 19:26:07
 * @LastEditTime: 2022-09-04 11:00:40
 * @FilePath: \vue-ts-vite\src\components\loading\src\Loading.vue
-->
<template>
  <div class="Loading">
    <div class="content">加载中...</div>
    <div>标题： {{ title }}</div>
  </div>
</template>

<script lang="ts" setup>
import { ref } from "vue";
const props = defineProps({
  title: {
    type: String,
    default: "",
  },
});
</script>

<style scoped lang="less">
.Loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  // background-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.7);
  .content {
    font-size: 14px;
    // color: blue;
    // color: #fff;
    color: #409eff;
  }
}
</style>
